package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysUserCidMapper;
import com.ruoyi.system.domain.SysUserCid;
import com.ruoyi.system.service.ISysUserCidService;

/**
 * 绑定设备Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-23
 */
@Service
public class SysUserCidServiceImpl implements ISysUserCidService 
{
    @Autowired
    private SysUserCidMapper sysUserCidMapper;

    /**
     * 查询绑定设备
     * 
     * @param userId 绑定设备主键
     * @return 绑定设备
     */
    @Override
    public SysUserCid selectSysUserCidByUserId(Long userId)
    {
        return sysUserCidMapper.selectSysUserCidByUserId(userId);
    }

    /**
     * 查询绑定设备列表
     * 
     * @param sysUserCid 绑定设备
     * @return 绑定设备
     */
    @Override
    public List<SysUserCid> selectSysUserCidList(SysUserCid sysUserCid)
    {
        return sysUserCidMapper.selectSysUserCidList(sysUserCid);
    }

    /**
     * 新增绑定设备
     * 
     * @param sysUserCid 绑定设备
     * @return 结果
     */
    @Override
    public int insertSysUserCid(SysUserCid sysUserCid)
    {
        return sysUserCidMapper.insertSysUserCid(sysUserCid);
    }

    /**
     * 修改绑定设备
     * 
     * @param sysUserCid 绑定设备
     * @return 结果
     */
    @Override
    public int updateSysUserCid(SysUserCid sysUserCid)
    {
        return sysUserCidMapper.updateSysUserCid(sysUserCid);
    }

    /**
     * 批量删除绑定设备
     * 
     * @param userIds 需要删除的绑定设备主键
     * @return 结果
     */
    @Override
    public int deleteSysUserCidByUserIds(Long[] userIds)
    {
        return sysUserCidMapper.deleteSysUserCidByUserIds(userIds);
    }

    /**
     * 删除绑定设备信息
     * 
     * @param userId 绑定设备主键
     * @return 结果
     */
    @Override
    public int deleteSysUserCidByUserId(Long userId)
    {
        return sysUserCidMapper.deleteSysUserCidByUserId(userId);
    }
}
